package cn.scw.project.goods.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 商品对象 g_commodity
 *
 * @author api
 * @date 2020-05-20
 */
@Data
@ApiModel("商品vo")
public class GCommodityVo {

    @ApiModelProperty("商品id")
    private Long id;

    @ApiModelProperty("轮播图片")
    private String carouselUrl;

    @ApiModelProperty("缩略图")
    private String litimgUrl;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品简介")
    private String intro;

    @ApiModelProperty("商品押金")
    private Double cashPledge = 0.0;

    @ApiModelProperty("商品类型（0设备采购，1设备租赁-包月，2设备租赁-两年赠机）——字典表维护")
    private String purchasingTypes;

    @ApiModelProperty("商品类型")
    private String purchasingTypesValue;

    @ApiModelProperty("商品价格")
    private Double price;

    @ApiModelProperty("商品数量")
    private int count;

    @ApiModelProperty("商品详情")
    private String details;

    @ApiModelProperty("商品分类（0：设备；1：办公耗材）")
    private String facilityType;

    @ApiModelProperty("商品分类")
    private String facilityTypeValue;

    @ApiModelProperty("商品详细分类")
    private Long facilityDetailsType;

    @ApiModelProperty("商品详细分类")
    private String facilityDetailsTypeValue;

    @ApiModelProperty("是否上架")
    private boolean isPutaway = true;

    @ApiModelProperty("添加日期")
    private Date putawayDate;

    @ApiModelProperty("是否多规格")
    private boolean isModel = false;

    @ApiModelProperty("规格")
    private List<GCommodityModelVo> modelList;


}
